<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SwtDheOrderGoods extends Model
{
    use HasFactory;
	use HasDateTimeFormatter;

    protected $table = 'swt_dhe_order_goods';

    protected $fillable = [
        'order_id',
        'goods_name',
        'goods_num',
        'goods_price'
    ];

    public function order()
    {
        return $this->belongsTo(SwtDheOrder::class);
    }
}
